package p3Inheritance;

public class Main {

	public static void main(String[] args) {
		A a1 = new A( 1, 4, 6, 8 );
		A a2 = new A( 2, 3, 5, 7 );

		/*
		a1.s = 0;
		a1.t = 0;
		a1.u = 0;
		a1.v = 0;
		*/
		
		System.out.println( " a1 is " + a1 );
		System.out.println( " a2 is " + a2 );
		System.out.println( " --> a1.compare(a2): " + a1.compare(a2) );

		B3 b1 = new B3( 1, 4, 6, 8, 10, 13, 15, 17 );
		B3 b2 = new B3( 2, 3, 5, 7, 11, 14, 16, 17 );

		/*
		b1.s = 0;
		b1.t = 0;
		b1.u = 0;
		b1.v = 0;
		b1.w = 0;
		b1.x = 0;
		b1.y = 0;
		b1.z = 0;
		*/
		
		System.out.println( " b1 is " + b1 );
		System.out.println( " b2 is " + b2 );
		System.out.println( " --> b1.compare(b2): " + b1.compare(b2) );

	}

}
